package com.group.eams.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.group.eams.pojo.dto.AssetOutStorageDetailQueryDto;
import com.group.eams.pojo.dto.AssetOutStorageQueryDto;
import com.group.eams.pojo.entity.AssetOutStorage;
import com.group.eams.pojo.vo.AssetOutStorageDetailListVo;
import com.group.eams.pojo.vo.AssetOutStorageListVo;
import org.apache.ibatis.annotations.Param;

/**
* @author 恩哲欣
* @description 针对表【asset_out_storage(资产出库表)】的数据库操作Mapper
* @createDate 2024-10-29 16:09:34
* @Entity com.group.eams.pojo.entity.AssetOutStorage
*/
public interface AssetOutStorageMapper extends BaseMapper<AssetOutStorage> {

    Page<AssetOutStorageListVo> assetOutStorageList(Page<AssetOutStorage> page,
                                                    @Param("assetOutStorageQueryDto")
                                                    AssetOutStorageQueryDto assetOutStorageQueryDto);


    //查询出库单资产详情
    Page<AssetOutStorageDetailListVo> assetOutStorageDetailList(Page<AssetOutStorage> page,
                                                                @Param("assetOutStorageDetailQueryDto")
                                                                AssetOutStorageDetailQueryDto assetOutStorageDetailQueryDto);
    //根据单号查询出库单
    AssetOutStorage findByApplicationNum(@Param("applicationNum") String applicationNum);

    //根据单号删除数据
    int deleteByApplicationNum(@Param("applicationNum") String applicationNum);
}
